package Agency.views;
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JTextField;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author wangari
 */
public class AddTenantView extends javax.swing.JFrame {

    /**
     * Creates new form AddTenantView and sets the background color to light gray
     */
    public AddTenantView() {
        this.getContentPane().setBackground(Color.LIGHT_GRAY);
        initComponents();
        setLocationRelativeTo(null);
    }
    /**
     * TextField to take the tenants name
     * @return  jTName
     */
    public JTextField getTenantName(){
        return jTName;
    }
    /**
     * TextField to take the tenants id number
     * @return jTIdNum
     */
     public JTextField getTenantIdNo(){
        return jTIdNum;
    }
     /**
      * TextField to take the tenant phone number
      * @return jTPhoneNum
      */
     public JTextField getTenantPhoneNum(){
        return jTPhoneNum;
    }
     /**
      * ComboBox to show the tenants house type
      * @return jCBHouseType
      */
    public JComboBox getTenantHseType(){
        return jCBHouseType;
    }
    /**
     * JComboBox to show the tenants house location
     * @return jCBTown
     */

    public JComboBox getTenantTown(){
        return jCBTown;
    }
    /**
     * ComboBox to  show the tenants gender
     * @return jCBGender
     */
    public JComboBox getTenantGender(){
        return jCBGender;
    }
    /**
     * TextField to take tenants occupation
     * @return jTOccupation
     */
    public JTextField getTenantOccupation(){
        return jTOccupation;
    }
    /**
     * Button to save the tenant information
     * @return jBSave
     */
    public JButton saveTenant(){
        return jBSave;
    }
    /**
     * Button to close the view
     * @return jBClose
     */
    public JButton closeTenantView(){
        return jBClose;
    }
    /**
     * TextField to take the   tenant house plot number
     * @return jTHousePlotNumber
     */
    public JTextField getHousePlotNum(){
        return jTHousePlotNumber;
    }
      
           
    

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jBSave = new javax.swing.JButton();
        jTName = new javax.swing.JTextField();
        jTIdNum = new javax.swing.JTextField();
        jTPhoneNum = new javax.swing.JTextField();
        jCBHouseType = new javax.swing.JComboBox();
        jCBGender = new javax.swing.JComboBox();
        jTOccupation = new javax.swing.JTextField();
        jCBTown = new javax.swing.JComboBox();
        jBClose = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        jTHousePlotNumber = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setText("New Tenant ");

        jLabel2.setText("Name");

        jLabel3.setText("Id Number/Passport Number");

        jLabel4.setText("Phone Number");

        jLabel5.setText("House Type");

        jLabel7.setText("Town");

        jLabel8.setText("Gender");

        jLabel9.setText("Occupation");

        jBSave.setText("Save");

        jTName.setColumns(25);

        jTIdNum.setColumns(25);

        jTPhoneNum.setColumns(25);

        jCBHouseType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Apartment", "3Bedroom", "2Bedroom", "1Bedroom", "BedSitter", "Singleroom", " " }));

        jCBGender.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "F", "M" }));

        jTOccupation.setColumns(25);

        jCBTown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Accra", "Madina", "Kwabenya", "Comet", "East Legon", "Dzorwulu", "Lapaz", "Ridge", "Airport Residential" }));

        jBClose.setText("Close");

        jLabel6.setText("House plot number");

        jTHousePlotNumber.setColumns(25);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel5)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel2)
                                    .addComponent(jLabel3)
                                    .addComponent(jLabel4)
                                    .addComponent(jLabel7)
                                    .addComponent(jLabel8)
                                    .addComponent(jLabel9)
                                    .addComponent(jLabel6))
                                .addGap(84, 84, 84)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jTHousePlotNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(jTOccupation)
                                        .addComponent(jTPhoneNum)
                                        .addComponent(jTIdNum)
                                        .addComponent(jTName)
                                        .addComponent(jLabel1)
                                        .addComponent(jCBTown, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jCBHouseType, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jCBGender, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(141, 141, 141)
                        .addComponent(jBSave)
                        .addGap(144, 144, 144)
                        .addComponent(jBClose)))
                .addContainerGap(154, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addGap(32, 32, 32)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2)
                    .addComponent(jTName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(22, 22, 22)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jTIdNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(29, 29, 29)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(jTPhoneNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(38, 38, 38)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(jCBHouseType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 36, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(jTHousePlotNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(33, 33, 33)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBTown, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7))
                .addGap(38, 38, 38)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBGender, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8))
                .addGap(26, 26, 26)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTOccupation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel9))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBSave)
                    .addComponent(jBClose))
                .addContainerGap(37, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

   

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBClose;
    private javax.swing.JButton jBSave;
    private javax.swing.JComboBox jCBGender;
    private javax.swing.JComboBox jCBHouseType;
    private javax.swing.JComboBox jCBTown;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JTextField jTHousePlotNumber;
    private javax.swing.JTextField jTIdNum;
    private javax.swing.JTextField jTName;
    private javax.swing.JTextField jTOccupation;
    private javax.swing.JTextField jTPhoneNum;
    // End of variables declaration//GEN-END:variables
}
